/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isasim.instructions;
import isasim.RegisterHandler;
import isasim.MemoryManager;

/**
 *
 * @author joe
 */
public class LDR {

    public void loadRegister(int reg, int address, RegisterHandler rH, MemoryManager mM){

        int s = mM.getValue(address);


        rH.setValue(reg, s);
    }

    public int loadRegisterPassInt(int reg, int address, RegisterHandler rH, MemoryManager mM){

        int s = mM.getValue(address);


        

        return s;
    }

}
